//package com.fecean.aabbc.netty.client.prod1;
//
//import io.netty.channel.ChannelFuture;
//import io.netty.channel.ChannelFutureListener;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
///**
// * NettyClientChannelFutureListener
// *
// * @author: chenfenghai
// * @version: 1.0
// * @date: 2020-03-05 16:42
// * @blame Team
// */
//@Slf4j
//@Component
//public class NettyClientChannelFutureListener implements ChannelFutureListener {
//
//    @Override
//    public void operationComplete(ChannelFuture future) throws Exception {
//        //如果重连失败，则调用ChannelInactive方法，再次出发重连事件
//        if (future.isSuccess()) {
//            log.info("重连成功");
//        }else{
//            log.info("重连失败");
//            future.channel().pipeline().fireChannelInactive();
//        }
//    }
//}
